package com.easy.payment.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import com.easy.bean.Orders;
@Service
@FeignClient("easy-order")
public interface OrderFeignService {
	
    @GetMapping("order/feign/{id}")
     Orders getOrderByID(@PathVariable("id") int id) ;
    @GetMapping("order/feign/orderstatus")
    int changeOrderStatus(@RequestParam("orderid") int orderid,@RequestParam("status") int status);

}
